<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/sistema/template/template.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">

	<ui:define name="corpo">

		<h1 id="H1">
			<h:outputLabel value="#{label.selecao_aplicacao_titulo}" id="TITULO" />
		</h1>

		<center>

			<p:fieldset style="width: 570px;" rendered="#{!selecaoAplicacaoMB.exibirQuadroAvisos}">
				<h:outputText value="#{label.selecao_aplicacao_info_selecao}" />
			</p:fieldset>

			<p:fieldset style="width: 570px;" rendered="#{selecaoAplicacaoMB.exibirQuadroAvisos}">
				<h:outputText value="#{label.selecao_aplicacao_info_gerindo} #{selecaoAplicacaoMB.aplicacao.nome}" />
			</p:fieldset>

			<p:spacer height="20" />

			<h:panelGrid id="PANEL_DATATABLE" width="600">

				<p:dataTable id="DATATABLE_RESULTADO" var="item" value="#{selecaoAplicacaoMB.aplicacoes}" selection="#{selecaoAplicacaoMB.aplicacao}"
					selectionMode="single" rowKey="#{item}" paginator="true" paginatorPosition="bottom" rows="10">

					<p:column id="DATA_COLUMN_SIGLA" headerText="Aplicações Gerenciadas" sortBy="#{item.sigla}">
						<h:outputText id="DATA_COLUMN_SIGLA_LBL" value="#{item.nome}" />
					</p:column>

					<p:ajax event="rowSelect" update="@form :TEMPLATE_PANEL_USUARIO :FORMULARIO_MENU" />

				</p:dataTable>

			</h:panelGrid>

			<p:spacer height="30" />

		</center>

	</ui:define>

</ui:composition>
